import Vue from 'vue'
import App from './App.vue'
import store from './store';  // 引入 Vuex store
import router from './router';
import '/flexible.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { Lunar } from 'lunar-javascript';
import ElTableInfiniteScroll from "el-table-infinite-scroll";

Vue.use(ElementUI).use(ElTableInfiniteScroll);

//定义公共sid
var currentUrl = window.location.href.slice(0, 22);

if(currentUrl == 'http://localhost:3000/'){
  Vue.prototype._sid = 'aeb5024e-e900-4562-a291-6fb9d3de385e';
  Vue.prototype._portalUrl = 'http://10.21.110.12:8088/portal'
}else{
  Vue.prototype._sid = window.sid;
  Vue.prototype._portalUrl = window.portalUrl;
}


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
